package com.pubg.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 商品类
 */
public class Product implements Serializable {
    //编号
    private int id;
    //名称
    private String name;
    //详细描述
    private String description;
    //价格
    private float price;
    //库存
    private int stock;
    //类别
    private int categoryLevel;
    //上传的头像路径
    private String fileName;
    //发布时间
    private Date createTime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public int getCategoryLevel() {
        return categoryLevel;
    }

    public void setCategoryLevel(int categoryLevel) {
        this.categoryLevel = categoryLevel;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Product(int id, String name, String description, float price, int stock, int categoryLevel, String fileName, Date createTime) {
        this.id = id;
        this.name = name;
        this.description = description;
        this.price = price;
        this.stock = stock;
        this.categoryLevel = categoryLevel;
        this.fileName = fileName;
        this.createTime = createTime;
    }

    public Product() {
    }
}
